package com.huaxin.dss2;

import lombok.Data;

/**
 * @author : luqing
 * @date : 2019/2/1 10:08
 */
@Data
public class TokenBean {

    public static TokenBean getSingleton() {
        return TokenBeanSingleton.SINGLETON.getTokenBean();
    }

    private TokenBean(){}

    private String accessToken;
    private int expiresIn;
    private String tokenType;
    private String refreshToken;

    private enum TokenBeanSingleton{
        /**
         *
         */
        SINGLETON;

        private TokenBean tokenBean;

        private TokenBean getTokenBean(){
            return this.tokenBean;
        }

        TokenBeanSingleton(){
            tokenBean = new TokenBean();
        }
    }

}
